package kr.pe.asuraho.zhibogo;

import kr.pe.asuraho.BaseService;

public class ZHibogo extends BaseService{

	public String list() {
		add("list", getSqlSession().selectList("kr.pe.asuraho.selectTorKeywordList"));
		return "/WEB-INF/jsp/zHibogoList.jsp";
	}
	
	public String detail() {
		add("detail", getSqlSession().selectOne("kr.pe.asuraho.selectTorKeywordDetail", getParamMap()));
		return "/WEB-INF/jsp/zHibogoDetail.jsp";
	}
	
	public String form() {
		return "/WEB-INF/jsp/zHibogoDetail.jsp";
	}
	
	public String insert() {
		getSqlSession().insert("kr.pe.asuraho.insertTorKeyword", getParamMap());
		return "zHibogo.do?method=list";
	}
	
	public String update() {
		getSqlSession().update("kr.pe.asuraho.updateTorKeyword", getParamMap());
		return "zHibogo.do?method=list";
	}
	
	public String remove() {
		getSqlSession().delete("kr.pe.asuraho.removeTorKeyword", getParamMap());
		return "zHibogo.do?method=list";
	}
}